package com.justgame.project.cloud.common.util;

public class ThreadLocalUtils {
    private final static ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public static void set(String str){
        threadLocal.set(str);
    }

    public static String get(){
        try{
            return threadLocal.get();
        } finally {
            threadLocal.remove();
        }
    }
}
